class Province < ActiveRecord::Base
  has_many :counties
  
  def to_param
    name.downcase.gsub(/[åä]+/,'a').gsub(/[ö]+/,'o').gsub(/[^a-z0-9\s_-]+/,'').gsub(/[\s_-]+/,'-') + "/#{id}"
  end
end
